package com.lilicould.util;

import java.security.SecureRandom;

public class UUIDUtile {

    private static final SecureRandom random = new SecureRandom();

    public static String generateOrderedId() {
        // 获取当前时间戳（毫秒）
        long timestamp = System.currentTimeMillis();
        // 生成一个四位随机整数
        int randomInt = (int)(Math.random() * 10000);

        return String.format("%d%04d", timestamp, randomInt);
    }

}
